/*
 * Init.c
 *
 * Created: 13.02.2013 00:44:27
 *  Author: victor
 */

#include <Init.h>
#include <avr/io.h>
#include <SerialDrv.h>
#include <TimerDrv.h>
#include <DIODrv.h>
#include <OutputHdl.h>

void Init_HW ( void )
{
	/* Clear global interrupts enable */
	SREG &= ~ ( 1 << SREG_I ); //cli();
	DIODrv_Init();
	TimerDrv_Init();
	SerialDrv_Init();
	/* Set the global interrupt enable bit */
	SREG |= ( 1 << SREG_I ); //sei();
}

void Init_BSW ( void )
{
	OutputHdl_Init();
}